package com.example.demo.service;

import com.example.demo.dao.MedicineDao;
import com.example.demo.pojo.Medicine;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service("caseMedicineServiceImpl")
public class MedicineServiceImpl implements MedicineService {
    @Autowired
    private MedicineDao medicineDao;

    @Override
    public List<Medicine> searchMedicine(String medicine_name) {
        return medicineDao.selectMedicineByName(medicine_name);
    }
}
